<#include "/lib/macro-lib.ftl"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<#include "../inc/commonJs.html">
<body>
<div align="center" class="easyui-panel" data-options='fit:true,border:false'>
<script>
function formCheck(f){
	if (f.fldm.value == ""){
		alert("请填写分类代码!");
		f.fldm.focus();
		return false;
	}
	if (f.flmc.value == ""){
		alert("请填写分类名称!");
		f.flmc.focus();
		return false;
	}
}
<#if ret??>
  alert('${ret}');
</#if>
</script>
<br>
<table width="98%" border="0" cellpadding="4" cellspacing="0" class="table_all">
<form name="frmobj" method="post" action="zdaddact.do" onSubmit="return formCheck(this)">
    <tr> 
      <td width="100" class="td_table_1">分类代码:</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="fldm">
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">分类名称:</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="flmc">
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">排序:</td>
      <td width="*" class="td_table_2"> 
        <input type="text" name="px" size="5">
      </td>
    </tr>
    <tr> 
      <td width="100" class="td_table_1">状态:</td>
      <td width="*" class="td_table_2"> 
      	<input type="text" name="zt" size="5">
      	<!--
        <select name="zt">
        	<option value="1">启用</option>
        	<option value="0">禁用</option>
        </select>
        -->
      </td>
    </tr>
    <tr> 
      <td class="td_table_2">&nbsp;</td><td class="td_table_2">
          <input type="submit" value="保存" class="button_70px">&nbsp;&nbsp;&nbsp;&nbsp;
           <input type="button" value="返回列表" class="button_70px" onclick="location.href='zdlist.do'">
      </td>
    </tr>
</form>
</table>
</div>
</body>
</html>
